//2009/08/14 16:10:21
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class FuelConsumption
{
public:
    double maximalDistance(vector <int> velocities, vector <int> consumptions, int fuel)
    {
		double mmax = 0;
		for(int i=0; i<velocities.size(); i++)
		{
			double temp = 1.0 * fuel / (1.0 * consumptions[i]) * (1.0 * velocities[i]);
			mmax = max(mmax, temp); 
		}
		return mmax;
    }
};
